< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03080401.xhp

(section: sqr) (bookmark: bm_id3156027)
Sqr function

Sqr 関数

Sqr Function [Runtime]
Sqr 関数 [実行時](hd_id3156027.1)

Calculates the square root of a numeric expression.
与えられた数値表式の平方根を計算します。(par_id3147226.2)

(/section: sqr)

Syntax:
構文:(hd_id3143267.3)

Sqr (Number)
Sqr (Number)(par_id3149415.4)

Return value:
戻り値:(hd_id3156023.5)

Double
倍精度(par_id3156343.6)

Parameters:
パラメータ:(hd_id3147265.7)

Number: Any numeric expression that you want to calculate the square root for.
Number: 平方根を計算する数値表式。(par_id3149457.8)

A square root is the number that you multiply by itself to produce another number, for example, the square root of 36 is 6.
ある数値の平方根とは、それを 2 乗した値が基の値となるもののことで、たとえば 36 の平方根は 6 です。(par_id3154365.9)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3153192.10)

Sub ExampleSqr
Sub ExampleSqr(par_id3145172.11)

Dim iVar As Single
Dim iVar As Single(par_id3156423.12)

iVar = 36
iVar = 36(par_id3147288.13)

Msgbox Sqr(iVar)
Msgbox Sqr(iVar)(par_id3159254.14)

end sub
end sub(par_id3161832.15)


< Prev / Next >